package com.ruoyi.ctcx.service.impl;

import java.util.List;
import com.ruoyi.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.ctcx.mapper.TbInsuranceContractCommissionRealMapper;
import com.ruoyi.ctcx.domain.TbInsuranceContractCommissionReal;
import com.ruoyi.ctcx.service.ITbInsuranceContractCommissionRealService;

/**
 * 保险合同佣金支付Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-11-21
 */
@Service
public class TbInsuranceContractCommissionRealServiceImpl implements ITbInsuranceContractCommissionRealService 
{
    @Autowired
    private TbInsuranceContractCommissionRealMapper tbInsuranceContractCommissionRealMapper;

    /**
     * 查询保险合同佣金支付
     * 
     * @param id 保险合同佣金支付主键
     * @return 保险合同佣金支付
     */
    @Override
    public TbInsuranceContractCommissionReal selectTbInsuranceContractCommissionRealById(Long id)
    {
        return tbInsuranceContractCommissionRealMapper.selectTbInsuranceContractCommissionRealById(id);
    }

    /**
     * 查询保险合同佣金支付列表
     * 
     * @param tbInsuranceContractCommissionReal 保险合同佣金支付
     * @return 保险合同佣金支付
     */
    @Override
    public List<TbInsuranceContractCommissionReal> selectTbInsuranceContractCommissionRealList(TbInsuranceContractCommissionReal tbInsuranceContractCommissionReal)
    {
        return tbInsuranceContractCommissionRealMapper.selectTbInsuranceContractCommissionRealList(tbInsuranceContractCommissionReal);
    }

    /**
     * 新增保险合同佣金支付
     * 
     * @param tbInsuranceContractCommissionReal 保险合同佣金支付
     * @return 结果
     */
    @Override
    public int insertTbInsuranceContractCommissionReal(TbInsuranceContractCommissionReal tbInsuranceContractCommissionReal)
    {
        tbInsuranceContractCommissionReal.setCreateTime(DateUtils.getNowDate());
        return tbInsuranceContractCommissionRealMapper.insertTbInsuranceContractCommissionReal(tbInsuranceContractCommissionReal);
    }

    /**
     * 修改保险合同佣金支付
     * 
     * @param tbInsuranceContractCommissionReal 保险合同佣金支付
     * @return 结果
     */
    @Override
    public int updateTbInsuranceContractCommissionReal(TbInsuranceContractCommissionReal tbInsuranceContractCommissionReal)
    {
        tbInsuranceContractCommissionReal.setUpdateTime(DateUtils.getNowDate());
        return tbInsuranceContractCommissionRealMapper.updateTbInsuranceContractCommissionReal(tbInsuranceContractCommissionReal);
    }

    /**
     * 批量删除保险合同佣金支付
     * 
     * @param ids 需要删除的保险合同佣金支付主键
     * @return 结果
     */
    @Override
    public int deleteTbInsuranceContractCommissionRealByIds(Long[] ids)
    {
        return tbInsuranceContractCommissionRealMapper.deleteTbInsuranceContractCommissionRealByIds(ids);
    }

    /**
     * 删除保险合同佣金支付信息
     * 
     * @param id 保险合同佣金支付主键
     * @return 结果
     */
    @Override
    public int deleteTbInsuranceContractCommissionRealById(Long id)
    {
        return tbInsuranceContractCommissionRealMapper.deleteTbInsuranceContractCommissionRealById(id);
    }
}
